home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / office deutch / INFOPATH.NL-NL / INFLR.CAB / FL_SelectRangeOfDatesInAMonthCalendar_snip_142602_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2005-10-28  |  2KB  |  47 lines

  1. <?xml version="1.0"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.     <Header>
  5.       <Title>Select a Range of Dates in a Windows Forms MonthCalendar</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Selects a range of dates in a MonthCalendar control.</Description>
  8.       <Shortcut>calRange</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.         <References>
  12.             <Reference>
  13.                 <Assembly>System.Windows.Forms.dll</Assembly>
  14.             </Reference>
  15.         </References>
  16.         <Imports>
  17.             <Import>
  18.                 <Namespace>System</Namespace>
  19.             </Import>
  20.             <Import>
  21.                 <Namespace>Microsoft.VisualBasic</Namespace>
  22.             </Import>
  23.         </Imports>
  24.       <Declarations>
  25.         <Object>
  26.           <ID>calendar</ID>
  27.           <Type>MonthCalendar</Type>
  28.           <ToolTip>Replace with a MonthCalendar from your form.</ToolTip>
  29.           <Default>MonthCalendar1</Default>
  30.         </Object>
  31.         <Object>
  32.           <ID>startDate</ID>
  33.           <Type>Date</Type>
  34.           <ToolTip>Replace with a start date for the selection range.</ToolTip>
  35.           <Default>#3/1/2005#</Default>
  36.         </Object>
  37.         <Object>
  38.           <ID>endDate</ID>
  39.           <Type>Date</Type>
  40.           <ToolTip>Replace with an end date for the selection range.</ToolTip>
  41.           <Default>#3/21/2005#</Default>
  42.         </Object>
  43.       </Declarations>
  44.       <Code Language="VB" Kind="method body"><![CDATA[$calendar$.SetSelectionRange($startDate$, $endDate$)]]></Code>
  45.     </Snippet>
  46.   </CodeSnippet>
  47. </CodeSnippets>